let domain = window.location.origin + '/';
let hostnames = [
    'localhost', '0.0.0.0',
    window.location.href.indexOf('web') > -1 ? '' : '192.168.3.161'
];

// 本地环境
if (hostnames.indexOf(window.location.hostname) > -1) {
    domain = domain + 'dev/';
} else if(process.env.NODE_ENV === 'development') {
    domain = domain + 'dev/';
}
export default domain;
